package edu.sctu.practice.class02.xiangkun.assign02.circle;

import edu.sctu.practice.class01.xiangkun.assign02.circle.Circle;

/**
 * Created by xiangkun on 2015/10/8.
 */
public class ProgramEnter {

    public static void printCircle(Circle c){
        System.out.println("圓的半徑："+c.getRadius());
        System.out.println("圓的面積：" + c.circleArea());
        System.out.println("圓的個數：" + c.getNumOfObjects());
    }

    public static void main(String[] args) {
        Circle circle1 = new Circle(10.25);
        printCircle(circle1);

        Circle circle2 = new Circle(3.7);
        printCircle(circle2);

        Circle circle3 = new Circle(6.11);
        printCircle(circle3);
    }

}
